var app = angular.module("wx", ["ui.router"]);

app.directive('ngFoot', function() {
	return {
		templateUrl: "html/Follow/foot.html"
	}
})
app.directive('ngFoot2', function() {
	return {
		templateUrl: "html/Daniel/foot.html"
	}
})
app.config(
	['$stateProvider', '$urlRouterProvider', function($stateProvider, $urlRouterProvider, $httpProvider) {
		$urlRouterProvider.otherwise('/');
		$stateProvider.state('index', {
				url: "/",
			})
			.state("level", {
				url: "/level",

				templateUrl: "html/level.html"
			})
		    .state("binding", {
				url: "/binding",

				templateUrl: "html/binding.html"
			})
		    .state("list", {
				url: "/list",

				templateUrl: "html/list.html"
			})
			.state("addAccount", {
				url: "/addAccount",

				templateUrl: "html/addAccount.html"
			})
			.state("more", {
				url: "/more",

				templateUrl: "html/more.html"
			})
			.state("documentary", {
				url: "/documentary",

				templateUrl: "html/documentary.html"
			})
			.state("infoGen", {
				url: "/infoGen",

				templateUrl: "html/infoGen.html"
			})
			.state("canselList", {
				url: "/canselList",

				templateUrl: "html/canselList.html"
			})
			//登录注册
			.state('login', {
				url: "/login",
				templateUrl: 'html/login.html'
			})
			.state('zc', {
				url: "/zc",
				templateUrl: 'html/zc.html'
			})
			.state('forget', {
				url: "/forget",
				templateUrl: 'html/forgetPass.html'
			})
			.state('changePass', {
				url: "/changePass",
				templateUrl: 'html/changePass.html'
			})
			//跟随者
			.state('follow', {
				url: "/follow",
				templateUrl: 'html/Follow/index.html'
			})
			.state('follow.info', {
				url: "/info",
				templateUrl: 'html/Follow/change.html'
			})
			.state('follow.ranking', {
				url: "/ranking",
				templateUrl: 'html/Follow/ranking.html'
			})
			.state('follow.list', {
				url: "/list",
				templateUrl: 'html/Follow/list.html'
			})
			.state('follow.more', {
				url: "/more",
				templateUrl: 'html/Follow/more.html'
			})
		
			//大牛
			.state('daniel', {
				url: "/daniel",
				templateUrl: 'html/Daniel/index.html'
			})
			.state('daniel.info', {
				url: "/info",
				templateUrl: 'html/Daniel/change.html'
			})
			.state('daniel.ranking', {
				url: "/ranking",
				templateUrl: 'html/Daniel/ranking.html'
			})
			.state('daniel.list', {
				url: "/list",
				templateUrl: 'html/Daniel/list.html'
			})
			
			.state('daniel.more', {
				url: "/more",
				
				templateUrl: 'html/Daniel/more.html'
			})
			
			

	}])